# -*- coding: utf-8 -*-

from blog.models import *

from django.contrib import admin

class newsAdmin(admin.ModelAdmin):
    prepopulated_fields = {'slug': ('tytul',)}
    
class kategoriaAdmin(admin.ModelAdmin):
    prepopulated_fields = {'slug': ('nazwa',)}

class tagAdmin(admin.ModelAdmin):
    prepopulated_fields = {'slug': ('nazwa',)}
    
admin.site.register(News, newsAdmin)
admin.site.register(Kategoria, kategoriaAdmin)
admin.site.register(Tag, tagAdmin)
admin.site.register(Komentarz)
